<template>
<div>
  <table v-for="i in yhlist" :key="i.id" border="1" cellspacing="0">
    <tr>===========================</tr>
    <tr>{{i.title}}</tr>
    <tr v-for="(j,x) in i['params']" :key="j.id">
      <td>{{x}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{j}}</td>
    </tr>
    <tr>
      <td><van-button disabled type="primary" size="large" v-if="i['status']==0">未审批</van-button></td>
      <td><van-button disabled type="info" size="large" v-if="i['status']==1">审批中</van-button></td>
      <td><van-button disabled type="info" size="large" v-if="i['status']==2">审批成功</van-button></td>
      <td><van-button disabled type="info" size="large" v-if="i['status']==3">申请失败</van-button></td>
    </tr>
  </table>
</div>
</template>

<script>
import maxios from "@/http/axios";

export default {
name: "xiangqing",
  data(){
  return{
    yhlist:[],
    userid : localStorage.getItem('userid')
   }
  },
  methods:{
    get_yhlist(){
      maxios('/users/add_qingjia?userid='+this.userid,'get').then(res=>{
        this.yhlist = res.list
      })
    }
  },
  mounted() {
  this.get_yhlist()
  }
}
</script>

<style scoped>

</style>